You're catching an exception which is good, but you don't do anything with it. Printing some debug information on exception catching can go a long way.