Fixed exit status on exception