A good solution for this problem is: When click to close the bitmap display , first stop the program that are running, after this close bitmap display