implements stop and stopAll methods
changed condition to check for destroy method in modules
removed additional comma between methods