 
     delegate.fetchUser (err, user) ->
       return callback err  if err
+      return callback new Error "user not found" unless user
 
       selector =
         hostnameAlias : hostnameAlias

    addVm = ({ account, target, user, sudo, groups, groupSlug
               type, planCode, planOwner, webHome })->

      uid = 0
      hostnameAliases = JVM.createAliases {
        nickname : user.username
        type, uid, groupSlug
      }


    {delegate} = client.connection
    delegate.fetchUser (err, user) ->
      return callback err  if err
      return callback new Error "user not found" unless user

      JGroup = require './group'
      JGroup.one slug:'koding', (err, fetchedGroup)=>
        return callback err  if err
