throw a 'use background' shader on the plane. it'll turn green in the viewport, but when you render, you'll see that the alpha channel only includes your object and its shadow, and not the plane.