Fixed onShutdown
Added travis yml