       params._id = ensureObjectId params._id if params._id?
 
       collection.save params, safe: true, (error, results) =>
-        console.log 'Error with saving data: ' + error if error
+        if error
+          console.log 'Error with saving data: ' + error
+
+          @close()
+          after false
 
         @close() if @_closeAfterRequest
         after if params._id? then params else results[0]


    @getInstance table, (db, collection) =>
      collection.count params, (error, results) =>
        console.log 'Error with fetching counts: ' + error if error

        @close() if @_closeAfterRequest
        after parseInt results, 10

      cursor.skip  options.skip  if options.skip

      cursor.toArray (error, results) =>
        if error
          console.log 'Error with fetching documents: ' + error

          @close()
          return after []

        @close() if @_closeAfterRequest
        after results
