Capture StandardError instead of Exception.