try to recover from panicking handlers