Raise instead of exit