improve try catch, change indent spaces to 2

Signed-off-by: zensh <admin@zensh.com>