Clear error in recipe_handler_finish

Previously error was being cleared before we closed our connection to
the client which prevented us from propagating that error.