Catch errors for user

Maybe fixes #127 in case of custom user objects.