Fix Submit command by testing if the client is really connected to the
database (affect also SpooledDirectoryTransfer)