It's either that or call doCloseConnection on postStop