Fixed static method issue and used join for startup and shutdown command