Implemented onDisconnect method and handled connection status to FireBase