Handling of errors and avoiding Unity complaints.