Avoid the grid points near the outer boundary
Clean up getdt()
Restore the access to outer grid points
Capture SIGINT so we can clean up the GPU task(s) before exiting
Capture SIGTERM because bkill will send it after sending SIGINT