Release device called in new thread.