execute callback on catch