Make sure any error is sent to logs