Passing a null command should cause a RuntimeException, which should leave the connection in a released state.  I'll add a unit test to that effect.