Fixing monitor script stopping code, can't be killed by SIGINT?