sleep added to avoid segFault
catch InterruptedException
Merge pull request #203 from Catrobat/PAINT_test_seg_fault

sleep added to avoid segFault
implemented: @cbenkovic
accepted: @X4mp