process timeout and other exceptions