remove try catch statement which can not catch exceptions in an callback