SQL$HELP72.HLB  —  Errors  SQL_ERRORS, DBNOTACTIVE
  database is not being used, or must be manually opened first

  Explanation:  You attempted to close a database that is not
  open, or you attempted to access a closed database that requires
  manual open.

  User Action:  There is no need to close the database - it is
  already closed.  If you are attempting to access a closed
  database that requires manual open, open the database first.
Close Help