Bugfix: properly clear the disconnected callback