Added error param to async close call.