updated javapwns shutdown function