Had quite the same problem on plesk 11. Answer is simple.
When you run plesk commands to manage domains and aliases, plesk restarts web server to apply new config. If you run such command from php script on working doman, plesk restarts apache and this script session just terminated by apache...