rawagner_OutOfMemoryError on Mac

This is due to the fact that method getCurrentActiveShell returns disposed shell.