Dodanie exception handlera