make main script handle exceptions