Fixes bug, exit only exited the subshell spawned by parenthesis and not the main
script as intended.