Use constants instead of magic numbers
set exit code 1, if exception