Crash fix, debug output, error handling (crash cleanup measures), v1.0.3

Signed-off-by: Skynz <florandara@gmail.com>