remove device from storage when client closed