Cleaned up error handling and logging in nicknack-core