Check only if connection is closed, as invalid should be done within the pool