switch back to correct user
rescue exceptions to ensure that things are cleaned up
default logger to $stdout