More specific exception catching
Better debugging