Commit b61cb92053 added a close method, use that instead of explicitly emitting the corresponding signal.
b61cb92053