add nack to requeue failed jobs, mcp -a instead of mcp -r to preserve permissions
lots of cleanup and improved error handling