close connection regardless of autocommit status and set conn to null