Notebook hangs and sql logging also freezes

Hi Friends,
We are facing issue while running notebooks where our netbooks hangs and sql logging also freezes. When we see from oracle database side all connctions are terminated. While checking in dba_audt_trail we see
LOG OFF BY CLEANUP.Please let us know if sombody has faced such issues and how troubleshoot it further as we cant see any logs to further investigate.