Adding error callbacks in runController