Make closeAsynchronously shutdown own thread, close #458