updated serial exception handler