#listen: only reset connection_state to :connected if it's not closed