Polish error handling.