Fixed rsync role. Also added a lot more error handling for better cleanup on failure.