catching java.lang.OutOfMemoryError