Solved problems of exception handling.