Disconnect signal listeners on close